package kr.pe.osdev.service;

import java.util.List;
import java.util.Map;

import kr.pe.osdev.domain.PrimaryCode;
import kr.pe.osdev.domain.SecondaryCode;

import org.springframework.dao.DataAccessException;

public interface CodeService {
    public void setCodeDao(PrimaryCode dao);
    public PrimaryCode add(PrimaryCode primaryCode) throws DataAccessException;
    public PrimaryCode find(PrimaryCode primaryCode) throws DataAccessException;
//    public List<PrimaryCode> findList() throws DataAccessException;
    public List<SecondaryCode> findList() throws DataAccessException;
    public void loadCodeCache() throws DataAccessException;
    public Map<String, String> findCacheByPrimaryCode(String primaryCode);
    public Map<String, SecondaryCode> findCacheTreeByPrimaryCode(String primaryCode);
    public int count() throws DataAccessException;
    public PrimaryCode modify(PrimaryCode primaryCode) throws DataAccessException;
    public PrimaryCode remove(PrimaryCode primaryCode) throws DataAccessException;
}
